Skip to content

fix(map): shared maps keep copies of removed nodes and show their description - #38

Merged
nickyyOO merged 2 commits into
OpenRAC:mainfrom
nickyyOO:fix/shared-map-removed-copies
Nov 23, 2026
Merged

nickyyOO merged 2 commits into
OpenRAC:mainfrom
nickyyOO:fix/shared-map-removed-copies

Conversation

@nickyyOO

Copy link
Copy Markdown
Collaborator

Before: a map that removed a model but kept its copies lost the copies on import. The planet made from a map had no author or description in Mods.

After: the copies come back, and the planet's pack carries the map's author and description.

How: a copy takes its base from the level as extracted when the import has removed it. add_planet reads .openrac/map.json and passes author and description to export_map.

Tested: test_shared_map.py (new test for removed copies), test_planet.py, test_destination_packs.py.

A map that removes a model and keeps only its copies lost the copies on import: the copy named a node the import had already removed. The copy now takes its base from the level as extracted.
The planet made from a shared map had no description, so the launcher's Mods list showed only its kind. Its pack now carries the map's author and its line about the map.
@nickyyOO
nickyyOO merged commit 0356061 into OpenRAC:main Nov 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant